<?php 
/**
 * @version			$Id: default_viewrecord.php 6 2010-07-22 10:04:21Z lowcosta@gmail.com $
 * @author			Richard Asp
 * @package			Joomla
 * @subpackage		gnudoor
 * @copyright		(C) 2010 gnudoor LLC
 * @license      GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

defined( '_JEXEC' ) or die( 'Restricted access' );
JHTML::_('stylesheet', 'myform.css','components/com_gnudoor/assets/css/');
$params = &JComponentHelper::getParams( 'com_gnudoor' );
$topalias = $params->get( 'Preview page top' );
$bottomalias = $params->get( 'Preview page bottom' );

$model =& $this->getModel('Newtask');
$topID = $model->getArticleID($topalias);
$topid = $topID->id;
$bottomID = $model->getArticleID($bottomalias);
$bottomid = $bottomID->id;
?>

<?php echo file_get_contents($this->articlebase . $topid);?>
<div id="newtask" class="myform">
<form action="index.php">
<fieldset>
	<legend><span>Project Details</span></legend>
<ol>
<div class="divfull">
<li>
	<div class="divclear">
		<div class="divtable">Your Name</div>
		<div class="divtable">Richard Asp</div>
	</div>
</li><li>
	<div class="divclear">
		<div class="divtable">Your Email</div>
		<div class="divtable">richard@richardasp.com</div>
	</div>
</li><li>
	<div class="divclear">
		<div class="divtable">Task Details</div>
		<div class="divtable">This is a project where you will do a takeoff of the site plan.</div>
	</div>
</li>
</div>
</ol>
</fieldset>
<fieldset class="submit">
<ol><li>
<a href="index.php?option=com_gnudoor&controller=newtask&task=thanks"><button>Submit</button></a>
<a href="index.php?option=com_gnudoor&controller=noaccess"><button>Cancel Project</button></a>
</li></ol>
</fieldset>

</form>
</div>
<?php echo file_get_contents($this->articlebase . $bottomid);?>